/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.job;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import javax.validation.constraints.NotNull;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 简历投递Entity
 * @author 罗天文
 * @version 2018-07-20
 */
public class HkUserResumeDelivery extends DataEntity<HkUserResumeDelivery> {
	
	private static final long serialVersionUID = 1L;
	private String resumeId;		// 用户简历id
	private HkUser user;		// 用户id
	private String state;		// 状态
	private HkUserEnterpriseRecruit recruit ;		// 职位id
	private HkUserEnterprise enterprise;
	private List<HkUserResumeDeliveryLog> hkUserResumeDeliveryLogList = Lists.newArrayList();		// 子表列表
	
	public HkUserResumeDelivery() {
		super();
	}

	public HkUserResumeDelivery(String id){
		super(id);
	}

	@Length(min=0, max=32, message="用户简历id长度必须介于 0 和 32 之间")
	public String getResumeId() {
		return resumeId;
	}

	public void setResumeId(String resumeId) {
		this.resumeId = resumeId;
	}
	
	@NotNull(message="用户id不能为空")
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public HkUserEnterpriseRecruit getRecruit() {
		return recruit;
	}

	public void setRecruit(HkUserEnterpriseRecruit recruit) {
		this.recruit = recruit;
	}

	public HkUserEnterprise getEnterprise() {
		return enterprise;
	}

	public void setEnterprise(HkUserEnterprise enterprise) {
		this.enterprise = enterprise;
	}

	public List<HkUserResumeDeliveryLog> getHkUserResumeDeliveryLogList() {
		return hkUserResumeDeliveryLogList;
	}

	public void setHkUserResumeDeliveryLogList(List<HkUserResumeDeliveryLog> hkUserResumeDeliveryLogList) {
		this.hkUserResumeDeliveryLogList = hkUserResumeDeliveryLogList;
	}
}